import Mock from 'mockjs';

let trainer_account = [{
		key: "/trainer-account/all",
		method: "get",
		data: Mock.mock({
			'STATUS': "SUCCESS",
			'data': {
				'trainer_account': {
                    "acountId": '@increment(1)',
					"trainerId": '@increment(1)',
                    "startDate": '@datetime("yyyy-MM-dd")',
                    "endDate": '@datetime("yyyy-MM-dd")',
					"amount|5": /[1-9]/,
                    "statu": "@cname()",
					"delFlg": true
				},
				
			}
		})
	},

	{
		key: "/trainer-account/list",
		method: "get",
		data: () => {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'data': {
					'current': 0,
					'size': 10,
					'pages': 6,
					'total': 55,
					"records|10": [{
						"acountId": '@increment(1)',
						"trainerId": '@increment(1)',
						"startDate": '@datetime("yyyy-MM-dd")',
						"endDate": '@datetime("yyyy-MM-dd")',
						"amount|5": /[1-9]/,
						"statu": "@cname()",
						"delFlg": true
					}]
				}
			});
		}
	},
	{
		key: "/trainer-account/info",
		method: "get",
		data: function() {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'data': {
                    "acountId": '@increment(1)',
                    "trainerId": '@increment(1)',
                    "startDate": '@datetime("yyyy-MM-dd")',
                    "endDate": '@datetime("yyyy-MM-dd")',
                    "amount|5": /[1-9]/,
                    "statu": "@cname()",
                    "delFlg": true
				}
			})
		}
	},
	{
		key: "/trainer-account/info",
		method: "put",
		data: function() {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'data': "",
			});
		}
	},
	{
		key: "/trainer-account/info",
		method: "post",
		data: function() {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'data': "",
			});
		}
	}
];

export default trainer_account;
